package com.lintesis.lintesismodel.protocolo;

import java.util.List;

import javax.persistence.Entity;

import com.lintesis.lintesismodel.common.hibernate.BussinessObject;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Medicamento extends BussinessObject {

	@javax.persistence.SequenceGenerator( name="SEQ_MEDICAMENTO", sequenceName="SEQ_MEDICAMENTO", allocationSize=1)
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_MEDICAMENTO")
	
	private Integer medicamentoId;
	private String nombre;
	private String laboratorio;
	private Float dosisRecomendada;
	@OneToMany
	private List<Composicion> composicion;
	
	public void setMedicamentoId(Integer medicamentoId) {
		this.medicamentoId = medicamentoId;
	}
	public Integer getMedicamentoId() {
		return medicamentoId;
	}
	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	public String getNombre() {
		return nombre;
	}
	public void setLaboratorio(String laboratorio) {
		this.laboratorio = laboratorio;
	}
	public String getLaboratorio() {
		return laboratorio;
	}
	public void setDosisRecomendada(Float dosisRecomendada) {
		this.dosisRecomendada = dosisRecomendada;
	}
	public Float getDosisRecomendada() {
		return dosisRecomendada;
	}

	@Override
	public void doAfterDelete() {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void doAfterSave() {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void doBeforeDelete() {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void doBeforeSave() {
		// TODO Auto-generated method stub
		
	}
	@Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return medicamentoId;
	}
	@Override
	public String getObjectDescription() {
		// TODO Auto-generated method stub
		return null;
	}
	public void setComposicion(List<Composicion> composicion) {
		this.composicion = composicion;
	}
	public List<Composicion> getComposicion() {
		return composicion;
	}
	
}
